import { Commit, Action, ActionTree } from 'vuex'
import { State } from './index'
import { PatientInfo } from './common'
import axios from 'axios';

// const addToCart: Action<State, any> = (context: { commit: Commit }, p: PatientInfo) => {
//     axios({
//         url: '/api/services/Patient/PatientSurgicalApply/GetAll'
//     }).then((response) => {
//         const payload: PatientInfo = response && response.data;
//         context.commit('profileLoaded', payload);
//     }, (error) => {
//         console.log(error);
//         context.commit('profileError');
//     });
// }

const actions: ActionTree<State, any> = {
    // addToCart,

}

export default actions